package xkp.lesson.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;

@Controller
@RequestMapping("/hello")
public class HelloController {
    @GetMapping("/addEmp.action")
    public String addEmp(Integer empno, String ename, String job, Double sal, Date hiredate){
        System.out.println(empno);
        System.out.println(ename);
        System.out.println(job);
        System.out.println(sal);
        System.out.println(hiredate);
        return "";
    }
}
